package cl.pucv.androidtelemedicina;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Result extends Activity {
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.resultado);
	   
		 	TextView resultText = (TextView) findViewById(R.id.resultText);
		 	Bundle bundle = getIntent().getExtras();
		 	
		 	if(bundle.getString("cancelar")!=null) {
		 		resultText.setText(getString(R.string.cancelOp));
		 	}else{
		 		String especialidad = bundle.getString("especialidad");
		 		resultText.setText(
		 				getString(R.string.resultOK)+ especialidad);
		 		
		 	}
	 	}
}
